#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "qdebug.h"
#include "qfiledialog.h"
#include "qfile.h"
#include "filemanage.h"



MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_actionOpen_triggered()
{

    QString filename=QFileDialog::getOpenFileName(this,tr("open"),"","kicad pcb file(*.kicad_pcb)",0);
    fileManage *filemanege = fileManage::Instance();
    filemanege->fileManage_load_file(filename);
}
